| Conditions | 1 |
| Paths | 2 |
| Total Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | /** |
||
| 24 | function SayNode(config) { |
||
| 25 | RED.nodes.createNode(this, config); |
||
| 26 | var node = this; |
||
| 27 | this.on('input', function (msg) { |
||
| 28 | say.speak( |
||
| 29 | this.name || msg.payload, |
||
| 30 | this.voice, |
||
| 31 | 1, |
||
| 32 | function(err) { |
||
| 33 | if (err) { |
||
| 34 | return node.error(err); |
||
| 35 | } |
||
| 36 | node.send(msg); |
||
|
|
|||
| 37 | }); |
||
| 38 | }); |
||
| 39 | } |
||
| 40 | |||
| 43 |